@charset "utf-8";
@import "./reset";

@font-face {
  font-family: "PingFang-SC";
  src: url(../fonts/PingFang-SC.ttf);
}

// 公共头部
.header {
  width: 100vw;
  height: 11.2vw;
  border-bottom: .5333vw solid #f1f3f6ff;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: left;
  font-size: 4.2667vw;
  font-weight: 400;
  font-family: "PingFang-SC";
  position: fixed;
  top: 0;
  left: 0;

  span {
    margin-left: 4vw;
    margin-right: 37.3333vw;
    width: 3.4667vw;
    height: 5.8667vw;
    line-height: 5.8667vw;
  }
}

// 主体区域
.main {
  padding-top: 11.2vw;
  padding-bottom: 13.3333vw;

  // 购物车空状态
  .cart-empty {
    margin: 0 auto;
    text-align: center;
    font-family: "PingFang-SC";
    font-size: 3.7333vw;
    border-bottom: 3.824vw solid #f1f3f6ff;

    img {
      width: 34vw;
      height: 22.576vw;
      margin-top: 13.3333vw;
      margin-bottom: 3.7333vw;
    }

    p {
      color: #555555ff;
      font-weight: 400;
      margin-bottom: 2.9333vw;
    }

    a {
      text-decoration: none;
      display: flex;
      justify-content: center;
      margin-bottom: 13.3333vw;

      .go {
        width: 32.5333vw;
        height: 8vw;
        background: #884e22ff;
        color: #ffffffff;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }

  // 猜你喜欢
  .guess {
    display: flex;
    flex-direction: column;
    background: #f7f8f8ff;
    padding-bottom: 5.3333vw;

    .like {
      color: #555555ff;
      font-size: 4.6667vw;
      font-weight: 400;
      font-family: "PingFang-SC";
      margin: 4vw;
    }

    // 商品
    .goods {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;

      a {
        .item {
          margin: 0 auto;
          background: #ffffffff;
          margin-bottom: 2.6667vw;
          box-shadow: .8vw .8vw 1.3333vw .8vw #E4E6E7;

          img {
            width: 44vw;
            height: 44vw;
          }

          p {
            margin-top: 2.6667vw;
            color: #333333ff;
            font-size: 3.7333vw;
            font-weight: 400;
            font-family: "PingFang-SC";
            padding-left: 2.6667vw;
          }

          .item-under {
            display: flex;
            justify-content: space-between;
            line-height: 5.3333vw;
            margin-top: 1.3333vw;
            margin-bottom: 1.6vw;

            .price {
              color: #ff734cff;
              font-size: 3.7333vw;
              font-weight: 600;
              font-family: "PingFang SC";
              width: 10.6667vw;
              height: 5.3333vw;
              padding-left: 1.3333vw;
            }

            .sales {
              color: #999999ff;
              font-size: 3.2vw;
              font-weight: 400;
              font-family: "PingFang-SC";
              padding-right: 1.8667vw;
            }
          }
        }
      }

    }
  }
}

// 公共底部
.tabbar {
  width: 100vw;
  height: 13.3333vw;
  background-color: #F5F5F5;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: fixed;
  bottom: 0;
  z-index: 999;

  a {
    text-decoration: none;
    color: #333333ff;
    font-size: 3.2vw;
    font-weight: 400;
    font-family: "PingFang-SC";
    text-align: center;
    line-height: 4vw;

    img {
      display: block;
      height: 7.2vw;
    }
  }
}